package com.un.ebs.sys.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.un.ebs.core.metadata.DbField;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * (EntLinkman)表实体类
 *
 * @author liubo
 * @since 2020-08-19 16:02:25
 */
@Data
@Component
@TableName("sys_ent_linkman")
@SuppressWarnings("serial")
public class EntLinkman extends Model<EntLinkman> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;


    @DbField(name = "ent_id", length = 40, precision = 0)
    private String entId;

    @DbField(name = "name", length = 100, precision = 0)
    private String name;

    @DbField(name = "phone", length = 20, precision = 0)
    private String phone;

    @DbField(name = "address", length = 200, precision = 0)
    private String address;

    @DbField(name = "is_default", length = -1, precision = 0)
    private Boolean isDefault;

    @DbField(name = "default_deliver_type_dict", length = 100, precision = 0)
    private String defaultDeliverTypeDict;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}